var express = require('express');
var router = express.Router();
var dataCtrl=require('../controllers/classify.contorller');

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.post('/data', dataCtrl.create);
router.get('/data/:id', dataCtrl.getData);
router.put('/data/:id', dataCtrl.update);
router.post('/list/:type', dataCtrl.list);
router.delete('/data/:id', dataCtrl.remove);
router.get('/classlist/:type', dataCtrl.classList);

module.exports = router;
